package com.yanqu.road.entity.activity.dafuweng;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.player.UserBaseInfo;

/**
 * 造谣祝福记录
 */
@FieldTypeAnnotation(tableName = "t_u_dfw_union_record")
public class DFWUnionRecord extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID")
    private int activityId;

    @FieldTypeAnnotation(desc = "商会活动分组")
    private int groupId;

    @FieldTypeAnnotation(desc = "造谣/祝福者用户ID")
    private long userId;
    @FieldTypeAnnotation(desc = "造谣/祝福者用户基础信息")
    private UserBaseInfo userBaseInfo;

    @FieldTypeAnnotation(desc = "编号")
    private int recordId;

    @FieldTypeAnnotation(desc = "创建时间")
    private long createTime;

    @FieldTypeAnnotation(desc = "被造谣/祝福服务器ID")
    private long serverId;
    @FieldTypeAnnotation(desc = "被造谣/祝福商会UID")
    private String unionUid;
    @FieldTypeAnnotation(desc = "反击次数")
    private int beatBackTimes;

    @FieldTypeAnnotation(desc = "类型，1造谣，2祝福")
    private int recordType;

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public void setUserBaseInfo(UserBaseInfo userBaseInfo) {
        this.userBaseInfo = userBaseInfo;
    }

    public void setRecordId(int recordId) {
        this.recordId = recordId;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public void setServerId(long serverId) {
        this.serverId = serverId;
    }

    public void setUnionUid(String unionUid) {
        this.unionUid = unionUid;
    }

    public void setBeatBackTimes(int beatBackTimes) {
        if (beatBackTimes != this.beatBackTimes) {
            this.beatBackTimes = beatBackTimes;
            setUpdateOption();
        }
    }

    public void setRecordType(int recordType) {
        this.recordType = recordType;
    }

    public int getActivityId() {
        return activityId;
    }

    public long getUserId() {
        return userId;
    }

    public UserBaseInfo getUserBaseInfo() {
        return userBaseInfo;
    }

    public int getRecordId() {
        return recordId;
    }

    public long getCreateTime() {
        return createTime;
    }

    public long getServerId() {
        return serverId;
    }

    public String getUnionUid() {
        return unionUid;
    }

    public int getBeatBackTimes() {
        return beatBackTimes;
    }

    public int getRecordType() {
        return recordType;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }
}
